package fr.upmc.aladyn.transactionablesMetaObject;

import fr.upmc.aladyn.transactionablesMetaObject.TransactionableMetaObjTranslator;
import javassist.ClassPool;
import javassist.Translator;
import javassist.tools.reflect.Loader;

/**
 * A main class for testing with the meta-object solution
 * @author Ritchie Nithoo
 * @author Jules Fabry
 * @version 1.0
 *
 */
public class LancementMainMetaObject {
	public static void main (String [] args) throws Throwable {
		Loader cl = new Loader();
		ClassPool pool = ClassPool.getDefault();
		Translator translatorMetaObject = new TransactionableMetaObjTranslator(cl);
		cl.addTranslator(pool,translatorMetaObject);
		cl.run("fr.upmc.aladyn.mainTest.MainTest1",args);
		cl.run("fr.upmc.aladyn.mainTest.MainTest2",args);
		cl.run("fr.upmc.aladyn.mainTest.MainTest3",args);
		cl.run("fr.upmc.aladyn.mainTest.MainTest4",args);
		cl.run("fr.upmc.aladyn.mainTest.MainTest5",args);
		cl.run("fr.upmc.aladyn.mainTest.MainTest6",args);
		cl.run("fr.upmc.aladyn.mainTest.MainTest7",args);
		cl.run("fr.upmc.aladyn.mainTest.MainTest8",args);
		cl.run("fr.upmc.aladyn.mainTest.MainTest9",args);
		cl.run("fr.upmc.aladyn.mainTest.MainTest10",args);
	}
}
